home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1034 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.herts.ac.uk!cs4ed
  2. From: cs4ed@herts.ac.uk (Some CS student)
  3. Newsgroups: comp.lang.c
  4. Subject: Borland OWL Combo Boxes
  5. Date: 10 Jan 1996 22:32:00 GMT
  6. Organization: University of Hertfordshire
  7. Message-ID: <4d1ep0$ema@helios.herts.ac.uk>
  8. NNTP-Posting-Host: altair.herts.ac.uk
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. I am writing a MS-Windows program using Borland's C++ 4.51, with the
  12. OWL (Object Windows Library). 
  13.  
  14. ... Is this cause enough for sympathy already?
  15. ... Or is it just me?
  16.  
  17. Because, I'm having trouble creating Combo Boxes without causing a GPF.
  18.  
  19.   MyCombo=new TCombobox(this, IDC_MYCOMBOBOX);
  20.  
  21. means that whenever the dialog which contains it is closed with an IDOK, 
  22. and when the application is closed (whether or not that dialog is used),
  23. a GPF is caused. Taking out the above line, as well as out of the
  24. TransferBuffer declarations, and the Combo Box's own initialisations
  25. ( such as MyCombo->AddString("Hello"); etc. ) means no GPF.
  26.  
  27.  
  28. Please, oh Gurus, what am I doing wrong??!!!
  29.  
  30.     (if not for me, then please answer for the sake of the PC - it's
  31.          going to get a hammer through it pretty soon at this rate!)
  32.  
  33.     Thanks,
  34.  
  35.     Steve.
  36. --
  37.                          Steve G Parker
  38. 4th Year Computer Science BSc (Hons), University of Hertfordshire, UK
  39. ----------------------------------------------------------------------
  40. Computer Architecture, Operating Systems, Computer Networks, Practical
  41.          Uses of Network Technology, User Centred Design
  42.